package com.phone.service.impl;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.phone.dao.CartDao;
import com.phone.entity.CartItml;
import com.phone.service.CartService;
@Service
@Transactional
public class CartServiceimpl implements CartService{
	@Autowired
	private CartDao cartimpl;

	@Override
	public void savecart(CartItml cart) {
		cartimpl.savecart(cart);
	}

	@Override
	public List<CartItml> showcart(int uid) {
		return cartimpl.showcart(uid);
	}

	@Override
	public void delcart(int id) {
		cartimpl.delcart(id);
	}
	@Override
	public boolean upcart(int id) {
		return cartimpl.upcart(id);
	}

	@Override
	public void clear(CartItml cartItml) {
		 cartimpl.clear(cartItml);
	}


}
